/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package admin.provider;

import admin.util.UtilEjb;
import ejb.attribute.KscEventJndi;
import ejb.bean.AbstractFacade;
import ejb.bean.SubcribeFacade;
import ejb.entity.Subcribe;

public class SubcribeProvider extends WrapperProvider<Subcribe> {

    public static SubcribeProvider getInstance() {
        return SubcribeProviderHolder.INSTANCE;
    }

    public SubcribeProvider() {
        super(Subcribe.class);
    }

    @Override
    public AbstractFacade<Subcribe> getAbstractFacade() {
        return getSubcribeFacade();
    }

    private SubcribeFacade getSubcribeFacade() {
        return UtilEjb.getInstance().<SubcribeFacade>getEJB(KscEventJndi.SUBCRIBE_BEAN);
    }

    private static class SubcribeProviderHolder {

        private static final SubcribeProvider INSTANCE = new SubcribeProvider();

        private SubcribeProviderHolder() {
        }
    }
}
